package com.atguigu.tingshu.account.client;

import com.atguigu.tingshu.account.client.impl.UserAccountDegradeFeignClient;
import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.vo.account.AccountLockResultVo;
import com.atguigu.tingshu.vo.account.AccountLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * <p>
 * 产品列表API接口
 * </p>
 *
 * @author qy
 */
@FeignClient(
        value = "service-account",
        contextId = "userAccountFeignClient",
        fallback = UserAccountDegradeFeignClient.class)
public interface UserAccountFeignClient {

    /**
     * 检查并且锁定账户余额
     *
     * @param accountLockVo
     * @return
     */
    @PostMapping("/api/inner/accountinfo/checkAndLockAccount")
    Result<AccountLockResultVo> checkAndLockAccount(AccountLockVo accountLockVo);

}